#pragma once

#include "xmlhelp.h"
#include <string>

class CNote
{
public:
	CNote(void);
	virtual ~CNote(void);

    int Measure() const {return m_measure;}
    double Beat() const {return m_beat;}
    const std::wstring &Instrument() const {return m_instrument;}  
    IXMLDOMNode *Node() {return m_node;}

private:
    std::wstring m_instrument;
    int m_measure;
    double m_beat;
    CComPtr<IXMLDOMNode> m_node;
	static int m_previousmeasure;

public:
	void XmlLoad(IXMLDOMNode * xml, std::wstring & instrument);
	bool operator<(const CNote &b);
};

